package stack.era.constants;

public class WorldAttributes {

	public static final int HOURS_IN_DAY = 24;
	public static final int DAYS_IN_WEEK = 7;
	public static final int DAYS_IN_YEAR = 365;
	public static final int MONTHS_IN_YEAR = 12;

	public static enum Month {
		JANUARY("January", 31), FEBRUARY("February", 28), MARCH("March", 31), APRIL(
				"April", 30), MAY("May", 31), JUNE("June", 30), JULY("July", 31), AUGUST(
				"August", 31), SEPTEMBER("September", 30), OCTOBER("October",
				31), NOVEMBER("November", 30), DECEMBER("December", 31);

		private String fullName;
		private int numDays;

		private Month(String fullName, int numDays) {
			this.fullName = fullName;
			this.numDays = numDays;
		}

		public String getFullName() {
			return fullName;
		}

		public int getNumDays() {
			return numDays;
		}

		public Month getNextMonth() {
			switch (this) {
			case JANUARY:
				return Month.FEBRUARY;
			case FEBRUARY:
				return Month.MARCH;
			case MARCH:
				return Month.APRIL;
			case APRIL:
				return Month.MAY;
			case JUNE:
				return Month.JULY;
			case AUGUST:
				return Month.SEPTEMBER;
			case SEPTEMBER:
				return Month.OCTOBER;
			case OCTOBER:
				return Month.NOVEMBER;
			case NOVEMBER:
				return Month.DECEMBER;
			case DECEMBER:
				return Month.JANUARY;
			default:
				return Month.JANUARY;
			}
		}

	}

}
